from Model.ModelAPI.CWSAM.API import CWSAMAPI


def request_model(model_name, data_list, info_list):
    API = {
        "CWSAM": CWSAMAPI()
    }
    API[model_name].initialize(data_list, info_list)  # 初始化
    API[model_name].preprocess()  # 预处理
    API[model_name].request()  # 调用
    API[model_name].reprocess()  # 后处理
